home *** CD-ROM | disk | FTP | other *** search
/ Champak 146 / (Vol 146) Jan 07 2012.iso / Games / screamin_upstreamin.swf / scripts / frame_4 / PlaceObject3_131_212 / CLIPACTIONRECORD onClipEvent(enterFrame).as
Text File  |  2012-01-07  |  394b  |  19 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.busRotateOn != "on")
  3.    {
  4.       var accel = 1000 / (_root.busSpeed * 10);
  5.       var lx = this._x + _xmouse / _root.traction / accel;
  6.       if(lx < 190)
  7.       {
  8.          lx = 190;
  9.       }
  10.       else if(lx > 355)
  11.       {
  12.          lx = 355;
  13.       }
  14.       this._x = lx;
  15.       this._rotation = _xmouse / 15 / accel;
  16.       this._y = 270;
  17.    }
  18. }
  19.